package com.ssy.lingxi.platform.manage.repository;


import com.ssy.lingxi.platform.manage.entity.content.ContentImage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ContentImageRepository extends JpaRepository<ContentImage, Long>, JpaSpecificationExecutor<ContentImage> {

    List<ContentImage> findAllByUseSceneAndPositionAndStatus(Integer useScene, Integer position, Integer status);

    boolean existsBySort(Integer sort);

    ContentImage findBySort(Integer sort);
}
